<%--
  Created by IntelliJ IDEA.
  User: 路♥克
  Date: 2017/12/5
  Time: 2:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <base href="${pageContext.request.contextPath}/web/"/>
    <meta charset="UTF-8">
    <title>Document</title>
    <jsp:include page="elments_views/js.jsp"/>
    <link rel="stylesheet" type="text/css" href="frame/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="frame/bootstrap/css/button.css">
    <!-- 	<link rel="stylesheet" type="text/css" href="frame/bootstrap/css/bootstrap-theme.min.css"> -->
    <link rel="stylesheet" type="text/css" href="frame/css/layout.css">
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <%--<script type="text/javascript" src="frame/myfocus/js/myfocus-2.0.1.min.js"></script>--%>
    <style type="text/css">
        .panel{margin-bottom: 0px;}
        .panel .panel-heading{border-radius: 0px;background: white;margin:0px;color: black;font-weight: bolder;font-size: 16px;padding-bottom: 0px;}
        .panel .panel-heading p.first-menu{border-left: 5px solid red;padding-left: 15px;}
        .panel .list-group li{border: none;padding-left: 50px;}
        .panel .list-group li a{color: black;}
        .panel .list-group li.active{background: #f9f9f9;font-weight: bold;}
        .panel .panel-heading p.date-source{font-weight:normal;color: #cfcfcf;}
    </style>
</head>
<body>
<jsp:include page="elments_views/header.jsp"/>
<script>
    $(function () {
        $("#yxynav li").removeClass("active");
        $("#yxynav li:nth-child(2)").addClass("active");
    });
</script>
<div class="container" style="margin-top: 120px;">
    <div class="row">
        <jsp:include page="elments_views/about-nav.jsp"/>
        <div class="col-md-9">
            <div class="panel">
                <div class="panel-heading">
                    <h3> ${news.title}</h3>
                    <p class="date-source pb-0"><span>来源：${news.newsSource}</span><span style="margin-left: 50px;" id="ftime">时间：${news.createTime}</span></p>
                    <hr>
                </div>
                <div class="panel-body" style="height: 500px;">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${news.content}
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="elments_views/footer.jsp"/>
<script>
    $(function(){
        var time=$.trim($("#ftime").html());
        var date=new Date(time);
        var time=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+" "+date.getHours()+":"+date.getMinutes()+":"+date.getSeconds();
        $("#ftime").html("时间："+time);
    })
</script>
</body>
</html>
